// pages/mine/evaluation/index.js
Page({

    /**
     * 页面的初始数据
     */
    data: {
        tabindex: 0,
        tab: ["已评价", "待评价"],
        comment: [{
            user: {
                img: "/images/index5-1.png",
                name: "Winner"
            },
            starnum: 4,
            content: "很好吃很好吃很好吃很好吃很好吃很好吃",
            imglist: ["/images/product1.png", "/images/product1.png", "/images/product1.png"],
            pro: {
                img: "/images/product1.png",
                name: "大脑雷达智力检测仪",
                price: "2880"
            },
            time: "2018.12.10 13:00"
        }, {
            user: {
                img: "/images/index5-1.png",
                name: "Winner"
            },
            content: "很好吃很好吃很好吃很好吃很好吃很好吃",
            starnum: 3,
            imglist: ["/images/product1.png", "/images/product1.png", "/images/product1.png"],
            pro: {
                img: "/images/product1.png",
                name: "大脑雷达智力检测仪",
                price: "2880"
            },
            time: "2018.12.10 13:00"
        }],
        comment2: [
			{
            user: {
                img: "/images/index5-1.png",
                name: "Winner"
            },
            pro: {
                img: "/images/product1.png",
                name: "大脑雷达智力检测仪",
                price: "2880"
            },
            time: "2018.12.10 13:00"
        },
			{
				user: {
					img: "/images/index5-1.png",
					name: "Winner"
				},
				pro: {
					img: "/images/product1.png",
					name: "大脑雷达智力检测仪",
					price: "2880"
				},
				time: "2018.12.10 13:00"
			}
		]
    },

    /**
     * 生命周期函数--监听页面加载
     */
    onLoad: function(options) {

    },

    /**
     * 生命周期函数--监听页面初次渲染完成
     */
    onReady: function() {

    },

    /**
     * 生命周期函数--监听页面显示
     */
    onShow: function() {

    },

    /**
     * 生命周期函数--监听页面隐藏
     */
    onHide: function() {

    },

    /**
     * 生命周期函数--监听页面卸载
     */
    onUnload: function() {

    },

    /**
     * 页面相关事件处理函数--监听用户下拉动作
     */
    tabtap: function(e) {
        this.setData({
            tabindex: e.currentTarget.dataset.index
        })
    }
})